package com.qingcheng.controller.system;


import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.pojo.system.Statistics;
import com.qingcheng.service.system.StatisticsSevice;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Reference
    private StatisticsSevice statisticsSevice;

    @RequestMapping("/findAll")
    public List<Statistics> findAll(int id){
        return statisticsSevice.findbyId(id);
    }
}
